<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a>轮播图管理</a></li>
			<li><a href="{:url('Banner/add')}">轮播图添加</a></li>
		</ul>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>轮播图</th>
					<th>跳转链接</th>
					<th>状态</th>
					<th>创建时间</th>
					<th>修改时间</th>
					<th>删除时间</th>
					<th width="140">操作</th>
				</tr>
			</thead>
			<tbody>
				<php>$user_statuses=array("0"=>lang('USER_STATUS_BLOCKED'),"1"=>lang('USER_STATUS_ACTIVATED'),"2"=>lang('USER_STATUS_UNVERIFIED'));</php>
				<foreach name="Banner" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td><img src="/upload/{$vo.image}" width="50px"></td>
					<td>{$vo.url}</td>
					<td>{$vo.switch}</td>
					<td>{$vo.create_time}</td>
					<td>{$vo.update_time}</td>
					<td>{$vo.delete_time}</td>
                    <td>
                        <a class="btn btn-xs btn-primary" href='{:url("Banner/edit",["id" => $vo["id"]])}'>编辑</a>

                        <a class="btn btn-xs btn-danger js-ajax-delete" href='{:url("Banner/del",["id" => $vo["id"]])}'>删除</a>


					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div style="width: 100%;display: flex;justify-content: center;" class="pagination">{$Banner->render()}</div>
		<div>共有 {$Banner->total()} 条数据，每页显示 {$Banner->listRows()} 条，当前第 {$Banner->currentPage()} 页，共 {$Banner->lastPage()} 页。</div>

	</div>
	<script src="__STATIC__/js/admin.js?v={$_static_version}"></script>
</body>
</html>
